package com.fzdy.dataplatform.dao.impl;


import com.fzdy.dataplatform.core.dao.impl.BaseDaoImpl;
import com.fzdy.dataplatform.dao.UserAnnouncementDao;
import com.fzdy.dataplatform.entity.UserAnnouncement;
import org.hibernate.Query;
import org.springframework.stereotype.Repository;

import java.io.Serializable;

@Repository
public class UserAnnouncementDaoImpl extends BaseDaoImpl<UserAnnouncement> implements UserAnnouncementDao {
    @Override
    public void deleteT(Serializable id) {
        Query q =getSession().createQuery("delete from UserAnnouncement where announcementid is null");
        q.executeUpdate();
    }
}
